package com.zhong.gang.app.ui.examine.adpter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhong.gang.app.R;
import com.zhong.gang.app.ui.examine.adpter.modle.PriceProgressAdapterBean;

public class PriceAdapter extends BaseQuickAdapter<PriceProgressAdapterBean, BaseViewHolder> {
    public PriceAdapter() {
        super(R.layout.item_price);
    }

    @Override
    protected void convert(BaseViewHolder helper, PriceProgressAdapterBean item) {
        helper.setText(R.id.title,item.getTitle());
        helper.setText(R.id.price_type,"料场价格");
        helper.setText(R.id.q_price,item.getqPrice()+"");
        helper.setText(R.id.h_price,item.gethPrice()+"");
        helper.setText(R.id.zd_price,(item.gethPrice() - item.getqPrice())+"");
    }
}
